import { setupWorker, rest } from "msw";
import {BASE_URL} from "../constants";

const worker = setupWorker(
    rest.get(`${BASE_URL}/categories/`, (req, res, ctx) => {
    return res(
        ctx.status(200),
        ctx.json([{name: 'test01'}, {name: 'test02'}]))
    }),
)

worker.start()
